<?php
$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'size'	=> 30,
);
$email = array(
	'name'	=> 'email',
	'id'	=> 'email',
	'value'	=> set_value('email'),
	'maxlength'	=> 80,
	'size'	=> 30,
);
?>

<div class="top shadow">
</div>

<div class="content">
	<?=form_open($this->uri->uri_string())?>
	<table id="form-profile-container" cellspacing="20px">
		<tr>
			<th>
				Change your email account<br/>
			</th>
			<td>
				<div id="account-info-modify">
				<table class="form-table">
					<tr>
						<td class="label">
							<?=form_label('Password', $password['id'])?>:
						</td>
						<td>
							<?=form_password($password)?>
						</td>
						<td class="form-error">
							<?=form_error($password['name'])?><?=isset($errors[$password['name']])?$errors[$password['name']]:''?>
						</td>
					</tr>
					<tr>
						<td class="label">
							<?=form_label('New email address', $email['id'])?>:
						</td>
						<td>
							<?=form_input($email)?>
						</td>
						<td class="form-error">
							<?=form_error($email['name'])?><?=isset($errors[$email['name']])?$errors[$email['name']]:''?>
						</td>
					</tr>
					<tr>
						<td class="label">&nbsp;</td>
						<td>
							<?=form_submit('change', 'Send confirmation email')?>&nbsp;<a href="/user/profile" class="reduced-font">cancel</a>
						</td>
					</tr>
				</table>
				
				</div>
			</td>
		</tr>
	</table>
	<?=form_close()?>
</div>